package cc.mrbird.febs.common.datasource.starter.tenant;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Todo
 *
 * @author xufeng
 * @version 1.0
 * @date 2021/10/20
 */
@Data
@TableName("t_tenant")
public class Tenant {

    @TableId(type = IdType.INPUT)
    @NotBlank(message = "{required}")
    private String tenantId;

    @NotBlank(message = "{required}")
    private String tenantName;

    private String remark;

    /**
     * 是否可删除.0=可 1=不可以
     */
    private Integer delFlag;

    @NotBlank(message = "{required}")
    private String secret;

}
